package com.lfx.concurrent;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Semaphore;

/**
 * @author 李逢喜
 * create 2021/8/2
 */
public class Main2 {


    public static void main(String[] args) throws InterruptedException {
        CountDownLatch countDownLatch=new CountDownLatch(5);
        for (int i = 0; i < 5; i++) {
            new MyThread2(countDownLatch,"学生"+i).start();
        }
        countDownLatch.await();
    }
}
